<div id="profile-header-username" style="padding-top:5px;padding-bottom:0px;">
    <div style="float:left;padding-right:10px;padding-bottom:10px;">
        <span style="position:relative;top:3px;">
            <a onclick="HideShowAndUpdateCustomField(document.getElementById('profileheader'),'toggle0','Profile_ShowProfile');return false;"><img alt="toggleimage" src="images/collapse.gif"/></a>
        </span>
        <span style="font-size:24px;">
            <a href="#" style="text-decoration:none;" onclick="">View/Edit Dispatch <?php echo $dispatch->dispatch; ?></a>
        </span>
        <div id="profile-header-datecreated" style="clear:both;" class="profile-header-item">            
            <div style="float:left; margin-left:20px;margin-top:10px;">
                <img class="top-image" src="<?=getImageBySize($location->image,100,100)?>" width="100"/> 
            </div>
             <div style="float:left; margin-left:20px;">
                <br/>
                <?php echo CHtml::link(
                                $location->custno.' - '.$location->locno,
                                array('/Locations/update','id'=>$location->id),
                                array('target'=>'_blank')
                            ); ?>                
                <br/>
                <?php echo $location->locname; ?>
                <br/>
                <?php echo $location->locnickname; ?>
                <br/>
                <?php echo $location->add1; ?>
                <br/>
		 <?php echo $location->city; ?>,

                <?php echo $location->state; ?>
             
                <?php echo $location->zip; ?>            
            </div>   
        </div>
        <?php if($dispatch->jobnumber!=NULL && strlen($dispatch->jobnumber)>0): ?>
            <div style="float: left;
            width: 80%;
            margin-left: 20px;
            border: solid 1px #ccc;
            background:yellow;
            padding: 5px;">
                <b>Job : <?php echo $dispatch->jobnumber; ?></b>
            </div>
        <?php endif; ?>
    </div>
    <div style='float:left;'>
        <label for="Dispatchdetails_notes" class="required">Notes <span class="required">*</span></label>
        <div class="model-data">
            <a href="javascript:void(0);" onclick="insertAtCaret('Dispatchdetails_notes',getDate()+' ');">Insert time</a>
            <?php echo CHtml::textArea('Dispatchdetails_notes',$dispatch->notes,array(            
                'style'=>'margin: 5px 0;
                width: 350px;
                height:150px;
                float: left;
                padding: 3px;'
            )); ?>
        </div>        
    </div>
    <div class="clear"></div>
</div>
